package Subject2;

public class ClassA {
    void method() {
        System.out.println("method()");
    }

    int method(int i) {
        System.out.println("method(int)");
        return 0;//缺少返回值
    }
    public static void main(String args[]){
        ClassA a = new ClassA();
        a.method();
        a.method(10);
    }
}
